package com.beasts.antpage.sh.service;

import com.crux.cloud.app.common.context.AppContext;
import com.crux.cloud.app.common.user.UserInfo;
import org.springframework.stereotype.Service;

/**
 * @author Locker
 * @date 17/07/2018 5:21 PM
 * @since 1.0
 */
@Service
public class UserInfoServiceImpl implements IUserInfoService {

    private AppContext appContext;

    public UserInfoServiceImpl(AppContext appContext) {
        this.appContext = appContext;
    }

    @Override
    public UserInfo getCurrentUser() {

        return appContext.currentUser();
    }

}
